-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/28342: Task description does not remove empty quotes #29144
Fix/28342: Task description does not remove empty quotes #29144
Conversation
|
@robertKozik Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@DylanDylann why don't we preview the html on android native? It sticks to the
rather then format properly or even remove the excessive quotes? |
Updated and this is the result: Screencast.from.11-10-2023.01.01.24.webm |
@DylanDylann We are getting now strange margin on top of rendered HTML, it's diffrent on other platforms - can we do sth with it? |
|
Has this issue already been reported? I'm fine with creating a separate bug report for it, but we should still address the problem of displaying the description with excessive quotes on android native, which should undoubtedly be part of this. |
I am not sure about it. Will check when I have a chance
Yeah. Let's wait internal team to confirm this #28342 (comment) |
@robertKozik Please help review the current change and we will create another issue to fix the markdown in android |
As I see we didn't get the confirmation from internal team about the creation of another issue about the markdown on android native - I had review the current state of the PR before, so if we agree on proceeding with it I'll post the reviewer PR quickly |
Thanks @robertKozik |
@robertKozik internal team has confirmed here #28342 (comment). Let's continue reviewing this PR |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid.-.web.movMobile Web - Safariios.web.movDesktopdesktop.moviOSandroid.native.movAndroidios.native.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -91,7 +94,7 @@ function NewTaskDescriptionPage(props) { | |||
> | |||
<View style={styles.mb5}> | |||
<TextInput | |||
defaultValue={props.task.description} | |||
defaultValue={parser.htmlToMarkdown(parser.replace(props.task.description))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh? Why are we converting to HTML and back to markdown?? This was not part of the proposal, was it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have mentioned in this #29144 (comment)
So when submitting the description to BE, I keep using the original logic (let BE save the mark down string) rather than convert mark down to HTML.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmmm but comments are saved in the DB as html, no? So this would mean saving things differently than for comments? That does not sound correct...right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Yeah. Comments and Privates notes are saved on BE side as HTML. As I mentioned above, with the description, I found out that if we let BE store the HTML, for example,
Hello
123, it just stores as "Hello123" - So if we want to store description as HTML, we need the BE fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I don't think we would want to save html in one place and markdown in the other.... can you comment on the OG issue what changes would need to be done in the backend please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5b9f5a8
to
daf413c
Compare
@iwiznia Please help review this PR again. Please note that we will use the solution that I mentioned before #29144 (comment) |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|
Details
Inconsistency bug - Assign Task - Task description does not remove empty quotes (works fine in private notes)
Fixed Issues
$ #28342
PROPOSAL: #28342 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screencast.from.10-10-2023.13.23.11.webm
Android: mWeb Chrome
android-chrome-quote.mp4
iOS: Native
native.mov
iOS: mWeb Safari
ios.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov